﻿data = function () {
    this.getLeague = function (func, LeagueType) {
        jQuery.ajax({
            type: "POST",
            url: '/ifs/ifs.ashx',
            async: true,
            data: {
                metdhodName: 'getleague',
                leagueType : LeagueType
            },
            dataType: "json",
            success: function (data) {
                if (func) {
                    func(data);
                }
            },
            error: function (d) {
                func();
            }
        });
    };
}